<#ftl ns_prefixes={"orm": "http://java.sun.com/xml/ns/persistence/orm"}
	encoding="UTF-8" /><#recurse doc><#macro "orm:entity-mappings">
	<#global class = .node["orm:entity"].@class />
	<#global package = .node["orm:package"] />
</#macro><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
		http://www.springframework.org/schema/beans/spring-beans.xsd">

	<!-- list controller -->
	<bean name="/${class?uncap_first}List.shtml" parent="abstractListController">
		<property name="commandClass">
			<value type="java.lang.Class">
				${package}.${class}ListForm
			</value>
		</property>
		<property name="formView" value="${class?uncap_first}List" />
		<property name="formService" ref="${class?uncap_first}FormService" />
		<property name="sessionForm" value="false" />
	</bean>

	<!-- edit controller -->
	<bean name="/${class?uncap_first}Edit.shtml" parent="abstractEditController">
		<property name="commandClass">
			<value type="java.lang.Class">
				${package}.${class}EditForm
			</value>
		</property>
		<property name="formView" value="${class?uncap_first}Edit" />
		<property name="formService" ref="${class?uncap_first}FormService" />
		<property name="sessionForm" value="false" />
		<property name="eventViewResolver">
			<bean
				class="com.googlecode.horncomb.web.spring.mvc.support.MappedEventViewResolver">
				<property name="eventViewMap">
					<map>
						<entry key="deleteItem" value="redirect:${class?uncap_first}List.shtml" />
					</map>
				</property>
			</bean>
		</property>
	</bean>

</beans>